import React from 'react';
import {Navigate,
    useNavigate,
    useLocation,useParams,
    Outlet,
    useSearchParams,
    BrowserRouter,
    Routes,Route,
    Link,
    NavLink,
    useRoutes
} from 'react-router-dom'


function Edit(props) {
    setTimeout(()=>{
        useNavigate('/')
    },2000)
    return (
        <div onClick={()=> Navigate('/')}>编辑页面</div>
    );
}

export default Edit;